@echo off
cd output\
set name=%CD_0328800387_20S80A_V0.01-
set old=%1.bin
set sysd=%date%
set syst=%time%
set year=%sysd:~2,2%
set mon=%sysd:~5,2%
set day=%sysd:~8,2%
set hour=%syst:~0,2%
if /i %hour% LSS 10 (
set hour=0%syst:~1,1%
)
set min=%syst:~3,2%
set sec=%syst:~6,2%
set new=%name%%year%%mon%%day%_%hour%%min%%sec%.bin
rename %old% %new%

